//
//  PushNotificationService.m
//  CarDream
//
//  Created by lidi on 15/5/3.
//  Copyright (c) 2015年 colin. All rights reserved.
//

#import "PushNotificationService.h"

@interface PushNotificationService()

@end

@implementation PushNotificationService

+ (void)registerPushNotification:(NSDictionary *)launchOptions
{
    // 设置推送环境
    #ifdef DEBUG
        [MobPush setAPNsForProduction:NO];
    #else
        [MobPush setAPNsForProduction:YES];
    #endif
    
    //MobPush推送设置（获得角标、声音、弹框提醒权限）
    MPushNotificationConfiguration *configuration = [[MPushNotificationConfiguration alloc] init];
    configuration.types = MPushAuthorizationOptionsBadge | MPushAuthorizationOptionsSound | MPushAuthorizationOptionsAlert;
    [MobPush setupNotification:configuration];
}

@end
